package com.copro.chemdb.constants;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

public class ConstType implements Serializable {
	private static final long serialVersionUID = 3656979365297980440L;

	private String name;
	private int id;

	public ConstType() {

	}

	public ConstType(ResultSet rs) throws SQLException {
		this.name = rs.getString("name");
		this.id = rs.getInt("id");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
